package com.ninong.ker.admin.domain;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 系统字典
 * 
 * @author cmd
 */
@Data
@TableName("fw_dic")
@AllArgsConstructor
@NoArgsConstructor
public class Dic implements Serializable {
	/**
	* 
	*/
	private static final long serialVersionUID = 1999434277837143666L;

	@TableId(type = IdType.ASSIGN_UUID)
	private String id;

	private String code;

	private String value;

	private String description;

	/**
	 * 租户id
	 */
	private String tenantId;

	/**
	 * 是否系统级菜单
	 */
	private Boolean hasSystem;

	/**
	 * 创建时间
	 */
	@TableField(value = "create_time", fill = FieldFill.INSERT)
	private Date createTime;

	/**
	 * 修改时间
	 */
	@TableField(value = "update_time", fill = FieldFill.UPDATE)
	private Date updateTime;

	public Dic(String code, String value) {
		this.code = code;
		this.value = value;
	}
}
